//
//  CalclatorApp.h
//  iCalculator
//
//  Created by Stephen Houser on 9/7/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "Calculator_Prefix.h"

@class BasicCalculatorView, CalculatorEngine;

// Might use this later. For now, it's just a name.
@interface MasterView : UITransitionView {
	NSMutableArray * views;
	int currentViewIndex;
}

@end

// The main controller of the application
// hint: controller pattern
@interface CalculatorApp : UIApplication {

	// the main viewport that contains the "sliders" pages
	// hint: view pattern
	UIWindow * mainWindow;
	MasterView * masterView;   
		// The basic "Apple looking" calculator
		BasicCalculatorView	* basicCalculatorView;
		
		// a diagnostic page
		UITouchDiagnosticsLayer * diagView;
		
		// a view with a navigation bar at the top;
		UINavigationBar *navView;

	// the engine that the calculator views use to do the work
	// hint: model pattern
	CalculatorEngine * engine;
	
}

- (void) applicationDidFinishLaunching: (id) fp8;
- (void) handleCommand: (NSString *) command;
- (void) updateViews;

@end
